﻿using System;

namespace ConsolePostSharp
{
    public class Orders
    {
        [Permission]
        [Exception]
        public bool Add(string id, string orderName)
        {
            Console.WriteLine("正在执行新增订单方法的操作，回车继续……");
            Console.ReadLine();
            Console.WriteLine("您添加的订单成功，编号：{0} 名称：{1}",id,orderName);
            return true;
        }

        [Exception]
        [Logger]
        [Permission]        
        public bool Delete(string id)
        {
            Console.WriteLine("您删除订单成功，编号：{0}",id);
            return true;
        }
    }
}
